﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using DailyDiet.Models;
using DailyDiet.Models.VO;

namespace DailyDiet.Services
{
    /// <summary>
    /// 将Diet转换为DietAndPicture,对其进行封装为VO
    /// </summary>
    public interface IDietToDietAndPictureService {
        /// <summary>
        /// 转换一个
        /// </summary>
        /// <param name="diet">待转换的diet</param>
        /// <returns></returns>
        Task<DietAndPicture> TranslateOneAsync(Diet diet);

        /// <summary>
        /// 转换一个列表的
        /// </summary>
        /// <typeparam name=""></typeparam>
        /// <returns></returns>
        Task<List<DietAndPicture>> TranslateListAsync(List<Diet> diets);

    }
}
